#ifdef __APPLE__
	#include <GLUT/glut.h>
	#include <OpenGL/gl.h>
	#include <OpenGL/glu.h>
#else
	#include <GL/glut.h>
	#include <GL/gl.h>
	#include <GL/glu.h>
#endif
 
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

#include "KeyboardHandler.h"
int windowWidth = 512, windowHeight = 512;


/* declare a keyboard handler */
KeyboardHandler myHandler(5);
void renderScene(void) {
    glMatrixMode(GL_MODELVIEW);             //make sure we aren't changing the projection matrix!
    glLoadIdentity();


    //clear the render buffer
    glClearColor(0,0,0,1);
    glClear(GL_COLOR_BUFFER_BIT);



}


void keyboardInput( unsigned char c, int x, int y){
	myHandler.key_pressed( c, x, y );
}




//  int main(int argc, char **argv)
//
int main(int argc, char **argv) {
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
    glutInitWindowPosition(50,50);
    glutInitWindowSize(windowWidth,windowHeight);
    glutCreateWindow("test window");

    glutKeyboardFunc( keyboardInput );
	//glutMouseFunc( mouseCallback );
	//glutMotionFunc( mouseMotion );

    //do some basic OpenGL setup
   // initScene();
   // glutTimerFunc((unsigned int)(1000.0 / 60.0), myTimer, 0);

    //and enter the GLUT loop, never to exit.
    glutMainLoop();

    return(0);
}
